//
//  DTItem.m
//  DayToDo
//
//  Created by karry on 2021/1/18.
//

#import "DTItem.h"

@implementation DTItem

+ (instancetype)itemWithTitle:(NSString *)title
                  detailTitle:(NSString *)detailTitle
                        image:(UIImage *)image
                          tag:(NSInteger)tag
                   identifier:(NSString *)identifier
                       handle:(DTItemHandler)handler{
    DTItem *item = [DTItem new];
    item.detailTitle = detailTitle;
    item.title = title;
    item.image = image;
    item.tag = tag;
    item.handler = handler;
    item.identifier = identifier;
    return item;
    
}

+ (instancetype)itemWithTitle:(NSString *)title
                        image:(UIImage *)image
                          tag:(NSInteger)tag
                   identifier:(NSString *)identifier
                       handle:(DTItemHandler)handler{
    return [self itemWithTitle:title detailTitle:nil image:image tag:tag identifier:identifier handle:handler];
    
}


@end
